package service;

import entity.User;

import java.sql.SQLException;
import java.util.List;

public interface UserService {
    // 登录
    public User login(String username, String password) throws SQLException;

    // 注册
    public int register(User user) throws SQLException;

    // // 按手机号码查询用户
    public User phones(String phone) throws SQLException;

    // 按邮箱查询用户
    public User emails(String email) throws SQLException;

    // 按username查询用户
    public User usernames(String username) throws SQLException;
    //查询个人信息
    public User getMessage(String name);
    //修改个人信息
    public int updateUser(User user);
    //修改个人密码
    public  int updatePwd(User user);

    // 注销
    public int wogout(int id);
}
